home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / repair / twig_scan.h < prev   
C/C++ Source or Header  |  2006-01-09  |  845b  |  35 lines

  1. /* Copyright 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
  2.    reiser4progs/COPYING.
  3.    
  4.    repair/twig_scan.h -- common structures and methods for the second
  5.    fsck pass. */
  6.  
  7. #ifndef REPAIR_SCAN_H
  8. #define REPAIR_SCAN_H
  9.  
  10. #include <time.h>
  11. #include <repair/librepair.h>
  12.  
  13. /* Statistics gathered during the pass. */
  14. typedef struct repair_ts_stat {
  15.     uint64_t read_twigs, fixed_twigs;
  16.     uint64_t bad_unfm_ptrs;
  17.     time_t time;
  18. } repair_ts_stat_t;
  19.  
  20.  
  21. /* Twig scan data. */
  22. typedef struct repair_ts {
  23.     repair_data_t *repair;
  24.  
  25.     reiser4_bitmap_t *bm_used;        /* In the tree blocks .             */
  26.     reiser4_bitmap_t *bm_twig;        /* To be scanned blocks.         */
  27.     reiser4_bitmap_t *bm_met;        /* Met blocks, cannot be pointed by 
  28.                            extents.                 */
  29.     repair_ts_stat_t stat;
  30. } repair_ts_t;
  31.  
  32. extern errno_t repair_twig_scan(repair_ts_t *ts);
  33.  
  34. #endif
  35.